package org.celery.modules.member.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.member.entity.Member;
import org.celery.modules.member.vo.MemberVO;

/**
 * 会员表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-11-22
 */
public class MemberWrapper extends BaseEntityWrapper<Member, MemberVO>  {

    public static MemberWrapper build() {
        return new MemberWrapper();
    }

	@Override
	public MemberVO entityVO(Member member) {
		MemberVO memberVO = BeanUtil.copy(member, MemberVO.class);

		return memberVO;
	}

}
